Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Function To Check All Relevant MiMa Versions #2265

Merged

Conversation

ChristopherDavenport
Copy link
Member

Removes Need for Manually Setting Binary Compatible Versions

build.sbt Outdated
else List(minor)
val patchVersions: List[Int] =
if (minor == 0 || patch == 0) List.empty[Int]
else Range(0, patch - 1).inclusive.toList
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm, I wonder if this would work. Your patchVersions is derived from the current major.minor.patch range, but you don't know if your previous minor version's patch range right?
e.g. if the current version is 1.1.0, you wouldn't check against 1.0.1? or if the current version is 1.1.3-SNAPSHOT, your list would include 1.0.2 which doesn't exist. Another issue is that if either if the current patch is 0, you wouldn't check against anything, e.g. 1.2.0-SNAPSHOT wouldn't check mima, right?

Copy link
Member Author

@ChristopherDavenport ChristopherDavenport May 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is why I knew this would be the place. 😄
edit: Your right I could only check the .0 for min versions different than the current version.

@codecov-io
Copy link

codecov-io commented May 22, 2018

Codecov Report

Merging #2265 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2265   +/-   ##
=======================================
  Coverage   94.96%   94.96%           
=======================================
  Files         334      334           
  Lines        5801     5801           
  Branches      214      215    +1     
=======================================
  Hits         5509     5509           
  Misses        292      292

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6353e99...31c9ebe. Read the comment docs.

Copy link
Contributor

@kailuowang kailuowang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good to me. Thanks!

Copy link
Member

@LukaJCB LukaJCB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kailuowang kailuowang merged commit f4722ac into typelevel:master May 30, 2018
@kailuowang kailuowang added this to the 1.2 milestone May 30, 2018
@ChristopherDavenport ChristopherDavenport deleted the makeMimaMoreExhaustive branch May 30, 2018 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants